package com.vcredit.creditcat.enumtype;

public enum LrhProfessionTypeEnum {
    COMPANY_EMPLOYEE(1, "公司职员","JOBONLINE/SHANGBANZU")
    , FACTORY_WORKER(2, "工厂职工","JOBONLINE/SHANGBANZU")
    , WAITER(3, "服务员","JOBONLINE/SHANGBANZU")
    , COURIER(4, "快递员","JOBONLINE/SHANGBANZU")
    , BARBER(5, "理发师","JOBONLINE/SHANGBANZU")
    , LAWYER(6, "律师","JOBONLINE/SHANGBANZU")
    , DRIVER(7, "司机","JOBONLINE/SHANGBANZU")
    , COOK(8, "厨师","JOBONLINE/SHANGBANZU")
    , CIVIL_SERVANT(9, "公务员或事业单位职员","JOBONLINE/SHANGBANZU")
    , PRIVATE_OWNER(10, "私营业主","JOBONLINE/SIYINGYEZHU")
    , BUSINESS_BOSS(11, "企业老板","JOBONLINE/QIYELAOBAN")
    , OTHER(12, "其他","JOBONLINE/QITA");

    private Integer code;
    private String desc;
    private String lrhCode;

    private LrhProfessionTypeEnum(Integer code, String desc,String lrhCode) {
        this.code = code;
        this.desc = desc;
        this.lrhCode = lrhCode;
    }

    public Integer getCode() {
        return code;
    }

    public String getDesc() {
        return desc;
    }
    public String getLrhCode() {
        return lrhCode;
    }
    
    public  static String getLrhCodeByDesc(Integer code) {
  		for (LrhProfessionTypeEnum c : LrhProfessionTypeEnum.values()) {
  			if (c.getCode().equals(code)) {
  				return c.lrhCode;
  			}
  		}
  		return null;
    }
    
}
